/**
 * Generate time : 2011-07-06 7:20:57
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFContactList
 * 
 */
public class ZMCFContactList extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdType = " "; /* 类型 */
	private String fdStatus = " "; /* 状态 */
	private String fdTitle = " "; /* 联系单标题 */
	private String fdSendDepartId = " "; /* 发送单位ID */
	private String fdSendPersonId = " "; /* 发送人ID */
	private String fdSendPerson = " "; /* 发送人 */
	private String fdContent = " "; /* 联系单内容 */
	private String fdSendTime = " "; /* 发送时间 */
	private String fdReceiveId = " "; /* 接收ID */
	private String fdFeedbackDepartId = " "; /* 反馈单位ID */
	private String fdFeedbackDepart = " "; /* 反馈单位 */
	private String fdFeedbackPersonId = " "; /* 反馈人ID */
	private String fdFeedbackPerson = " "; /* 反馈人 */
	private String fdFeedbackContent = " "; /* 反馈内容 */
	private String fdFeedbackTime = " "; /* 反馈时间 */
	
	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdType");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(6);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTitle");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("联系单标题");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendDepartId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("发送单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendPersonId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("发送人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendPerson");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("发送人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContent");
		eiColumn.setFieldLength(2000);
		eiColumn.setDescName("联系单内容");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdSendTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("发送时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReceiveId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("接收ID");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdFeedbackDepartId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackDepart");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("反馈单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPersonId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPerson");
		eiColumn.setFieldLength(8);
		eiColumn.setDescName("反馈人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackContent");
		eiColumn.setFieldLength(3000);
		eiColumn.setDescName("反馈内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("反馈时间");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCFContactList() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdType - 类型
	 * 
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}

	/**
	 * set the fdType - 类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdTitle - 联系单标题
	 * 
	 * @return the fdTitle
	 */
	public String getFdTitle() {
		return this.fdTitle;
	}

	/**
	 * set the fdTitle - 联系单标题
	 */
	public void setFdTitle(String fdTitle) {
		this.fdTitle = fdTitle;
	}

	/**
	 * get the fdSendDepartId - 发送单位ID
	 * 
	 * @return the fdSendDepartId
	 */
	public String getFdSendDepartId() {
		return this.fdSendDepartId;
	}

	/**
	 * set the fdSendDepartId - 发送单位ID
	 */
	public void setFdSendDepartId(String fdSendDepartId) {
		this.fdSendDepartId = fdSendDepartId;
	}

	/**
	 * get the fdSendPersonId - 发送人ID
	 * 
	 * @return the fdSendPersonId
	 */
	public String getFdSendPersonId() {
		return this.fdSendPersonId;
	}

	/**
	 * set the fdSendPersonId - 发送人ID
	 */
	public void setFdSendPersonId(String fdSendPersonId) {
		this.fdSendPersonId = fdSendPersonId;
	}

	/**
	 * get the fdSendPerson - 发送人
	 * 
	 * @return the fdSendPerson
	 */
	public String getFdSendPerson() {
		return this.fdSendPerson;
	}

	/**
	 * set the fdSendPerson - 发送人
	 */
	public void setFdSendPerson(String fdSendPerson) {
		this.fdSendPerson = fdSendPerson;
	}

	/**
	 * get the fdContent - 联系单内容
	 * 
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}

	/**
	 * set the fdContent - 联系单内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}

	/**
	 * get the fdSendTime - 发送时间
	 * 
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}

	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}

	/**
	 * get the fdReceiveId - 接收ID
	 * 
	 * @return the fdReceiveId
	 */
	public String getFdReceiveId() {
		return this.fdReceiveId;
	}

	/**
	 * set the fdReceiveId - 接收ID
	 */
	public void setFdReceiveId(String fdReceiveId) {
		this.fdReceiveId = fdReceiveId;
	}
	
	public String getFdFeedbackDepartId() {
		return fdFeedbackDepartId;
	}

	public void setFdFeedbackDepartId(String fdFeedbackDepartId) {
		this.fdFeedbackDepartId = fdFeedbackDepartId;
	}

	public String getFdFeedbackDepart() {
		return fdFeedbackDepart;
	}

	public void setFdFeedbackDepart(String fdFeedbackDepart) {
		this.fdFeedbackDepart = fdFeedbackDepart;
	}

	public String getFdFeedbackPersonId() {
		return fdFeedbackPersonId;
	}

	public void setFdFeedbackPersonId(String fdFeedbackPersonId) {
		this.fdFeedbackPersonId = fdFeedbackPersonId;
	}

	public String getFdFeedbackPerson() {
		return fdFeedbackPerson;
	}

	public void setFdFeedbackPerson(String fdFeedbackPerson) {
		this.fdFeedbackPerson = fdFeedbackPerson;
	}

	public String getFdFeedbackContent() {
		return fdFeedbackContent;
	}

	public void setFdFeedbackContent(String fdFeedbackContent) {
		this.fdFeedbackContent = fdFeedbackContent;
	}

	public String getFdFeedbackTime() {
		return fdFeedbackTime;
	}

	public void setFdFeedbackTime(String fdFeedbackTime) {
		this.fdFeedbackTime = fdFeedbackTime;
	}
	
	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTitle")), fdTitle));
		setFdSendDepartId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendDepartId")), fdSendDepartId));
		setFdSendPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPersonId")), fdSendPersonId));
		setFdSendPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPerson")), fdSendPerson));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdReceiveId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReceiveId")), fdReceiveId));
		setFdFeedbackDepartId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackDepartId")), fdFeedbackDepartId));
		setFdFeedbackDepart(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackDepart")), fdFeedbackDepart));
		setFdFeedbackPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPersonId")), fdFeedbackPersonId));
		setFdFeedbackPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPerson")), fdFeedbackPerson));
		setFdFeedbackContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackContent")), fdFeedbackContent));
		setFdFeedbackTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackTime")), fdFeedbackTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdType", StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdTitle", StringUtils.toString(fdTitle, eiMetadata.getMeta("fdTitle")));
		map.put("fdSendDepartId", StringUtils.toString(fdSendDepartId, eiMetadata.getMeta("fdSendDepartId")));
		map.put("fdSendPersonId", StringUtils.toString(fdSendPersonId, eiMetadata.getMeta("fdSendPersonId")));
		map.put("fdSendPerson", StringUtils.toString(fdSendPerson, eiMetadata.getMeta("fdSendPerson")));
		map.put("fdContent", StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));
		map.put("fdSendTime", StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));
		map.put("fdReceiveId", StringUtils.toString(fdReceiveId, eiMetadata.getMeta("fdReceiveId")));
		map.put("fdFeedbackDepartId", StringUtils.toString(fdFeedbackDepartId, eiMetadata.getMeta("fdFeedbackDepartId")));
		map.put("fdFeedbackDepart", StringUtils.toString(fdFeedbackDepart, eiMetadata.getMeta("fdFeedbackDepart")));
		map.put("fdFeedbackPersonId", StringUtils.toString(fdFeedbackPersonId, eiMetadata.getMeta("fdFeedbackPersonId")));
		map.put("fdFeedbackPerson", StringUtils.toString(fdFeedbackPerson, eiMetadata.getMeta("fdFeedbackPerson")));
		map.put("fdFeedbackContent", StringUtils.toString(fdFeedbackContent, eiMetadata.getMeta("fdFeedbackContent")));
		map.put("fdFeedbackTime", StringUtils.toString(fdFeedbackTime, eiMetadata.getMeta("fdFeedbackTime")));
		
		return map;

	}
}